package behavior.iterator;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {

        ComputerCollege computerCollege = new ComputerCollege();

        InfoCollege infoCollege = new InfoCollege();

        List<College> collegeList = new ArrayList<College>();
        collegeList.add(computerCollege);
        collegeList.add(infoCollege);

        OutputImp outputImp = new OutputImp(collegeList);
        outputImp.printCollege();
    }
}
